﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AmiEmuLib.Configuration.EventBindingConfig;
using AmiEmuLib.Host.HostInput;

namespace AmiEmu
{
    public class EventBindingRow
    {
        public EventBinding EventBinding;

        public string Amiga
        {
            get
            {
                return EventBinding.AmigaEvent.DisplayName;
            }
        }

        public string Combination1
        {
            get
            {
                if (EventBinding.Combinations.Count() > 0)
                    return EventBinding.Combinations.ElementAt(0).Shortcut;
                else
                    return "";
            }
        }

        public string Combination2
        {
            get
            {
                if (EventBinding.Combinations.Count() > 1)
                    return EventBinding.Combinations.ElementAt(1).Shortcut;
                else
                    return "";
            }
        }
    }
}
